<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>users.jsp</title>
</head>
<body>
<fieldset>
	<legend>随机数</legend>
	<c:if test="${randomInt % 2 == 1}">
		<span>随机数是奇数=${randomInt}</span>
	</c:if>
	<c:if test="${randomInt % 2 == 0}">
		<span>随机数是偶数=${randomInt}</span>
	</c:if>
</fieldset>
<fieldset>
	<legend>用户列表</legend>
	<table>
		<thead>
			<tr><td>ID</td><td>username</td></tr>
		</thead>
		<tbody>
			<c:forEach items="${users}" var="user">
				<tr><td>${user.id}</td><td>${user.username}</td></tr>
			</c:forEach>
		</tbody>
	</table>
</fieldset>	
</body>
</html>